package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * Template. Corresponds to the database table "TEMPLATE"
 */
@DatabaseTable(tableName = "TEMPLATE")
public class Template extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "TEMPLATE"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * DEPEND_TEMPLATE_ID
         */
        public static final String dependTemplateId = "DEPEND_TEMPLATE_ID";

        /**
         * DESCRIPTION
         */
        public static final String description = "DESCRIPTION";

        /**
         * NAME
         */
        public static final String name = "NAME";

    }

    @DatabaseField(columnName = $.dependTemplateId)
    private String dependTemplateId;

    @DatabaseField(columnName = $.description)
    private String description;

    @DatabaseField(columnName = $.name, canBeNull = false)
    private String name;

    public String getDependTemplateId() {
        return dependTemplateId;
    }

    public void setDependTemplateId(String dependTemplateId) {
        this.dependTemplateId = dependTemplateId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",dependTemplateId=").append(dependTemplateId);
        sb.append(",description=").append(description);
        sb.append(",name=").append(name);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

